package com.globalLogic.mocks;

import java.util.ArrayList;
import java.util.List;

import com.globalLogic.gps.graph.MapGraph;
import com.globalLogic.gps.graph.algorithms.Dijkstra;
import com.globalLogic.gps.maps.elements.AsphaltRoad;
import com.globalLogic.gps.maps.elements.DirtRoad;
import com.globalLogic.gps.maps.elements.Road;


public class CreateDummy {

	public static MapGraph getGraphExample ()
	{
		
		
		List<Road> roads = new ArrayList<Road>();
		roads.add(new AsphaltRoad(1d, 1d, 2d, 1d));
		roads.add(new DirtRoad(2d, 1d, 2d, 2d));
		roads.add(new AsphaltRoad(2d, 2d, 1d, 2d));
		roads.add(new AsphaltRoad(1d, 2d, 1d, 1d));
		roads.add(new DirtRoad(1d, 1d, 2d, 2d));
		roads.add(new AsphaltRoad(2d, 2d, 4d, 4d));
		roads.add(new AsphaltRoad(4d, 4d, 7d, 7d));
		
		for (Road road : roads) 
		{
			System.out.println(road);
		}

		MapGraph g = new MapGraph(roads);
		g.setAlgorithm(new Dijkstra());
		
		return g;
		
	}
	
}
